package com.fowo.api.sys.model;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import java.util.List;

@Schema(title = "创建角色请求")
@Data
public class CreateSysRole {
    /**
     * 角色名称
     */
    @Schema(title = "角色名称")
    @Size(max = 50)
    @NotEmpty
    private String roleName;

    @Schema(title = "受权菜单")
    private List<Long> menus;

    /**
     * 描述
     */
    @Schema(title = "描述")
    @Size(max = 255)
    private String description;

    /**
     * 排序值
     */
    @Schema(title = "排序值")
    private Integer sort;
}
